package com.ljsw.util;

import android.content.Context;

import com.ljsw.dialog.DeleteDialog;
import com.ljsw.dialog.FingerDialog;
import com.ljsw.dialog.HuiKuPassDialog;
import com.ljsw.dialog.LoadIngDialog;
import com.ljsw.dialog.LoginDialog;
import com.ljsw.dialog.PKBiaoPaiDiaglog.PKReconciDialog;
import com.ljsw.dialog.ProgressBarDialog;
import com.ljsw.dialog.RwlqDialog;
import com.ljsw.dialog.SubmitDialog;
import com.ljsw.dialog.SuccessDialog;
import com.ljsw.dialog.TiShiDialog;
import com.ljsw.dialog.TimeOut;
import com.ljsw.dialog.UserLoginDialog;
import com.ljsw.dialog.YuangongDialog;
import com.ljsw.dialog.ZzxDialog;

/**
 * @author 郑鸿博
 * @version V1.0
 * @Package com.ljsw.util
 * @Description: TODO(提示框Dialog管理类)
 * @date 2015-11-30 上午10:43:43
 */
public class DialogManager {

    public DialogManager(Context context) {
        super();
        this.context = context;
    }

    private Context context;
    private UserLoginDialog userLoginDialog;
    private DeleteDialog deleteDialog;
    private FingerDialog fingerDialog;
    private LoginDialog loginDialog;
    private ProgressBarDialog progressBarDialog;
    private RwlqDialog rwlqDialog;
    private SubmitDialog submitDialog;
    private TimeOut timeOut;
    private YuangongDialog yuangongDialog;
    private ZzxDialog zzxDialog;
    private SuccessDialog successDialog;
    private TiShiDialog tDialog;
    private HuiKuPassDialog huiKuPassDialog;//添加回库交接是否通过的dialog


    private PKReconciDialog pkReconciDialog;//  listview
    private LoadIngDialog   loadIngDialog;

    public LoadIngDialog getLoadIngDialog() {

        if (loadIngDialog == null) {
            loadIngDialog = new LoadIngDialog(context).builder();
        }
        return loadIngDialog;
    }

    public void setLoadIngDialog(LoadIngDialog loadIngDialog) {
        this.loadIngDialog = loadIngDialog;
    }




    public HuiKuPassDialog getHuiKuPassDialog() {
        if (huiKuPassDialog == null) {
            huiKuPassDialog = new HuiKuPassDialog(context).builder();
        }
        return huiKuPassDialog;
    }

    public TiShiDialog getTiShiDialog() {
        if (tDialog == null) {
            tDialog = new TiShiDialog(context).builder();
        }
        return tDialog;
    }

    public UserLoginDialog getUserLoginDialog() {
        if (userLoginDialog == null) {
            userLoginDialog = new UserLoginDialog(context).builder();
        }
        return userLoginDialog;
    }

    public DeleteDialog getDeleteDialog() {
        if (deleteDialog == null) {
            deleteDialog = new DeleteDialog(context).builder();
        }
        return deleteDialog;
    }

    public FingerDialog getFingerDialog() {
        if (fingerDialog == null) {
            fingerDialog = new FingerDialog(context).builder();
        }
        return fingerDialog;
    }

    public LoginDialog getLoginDialog() {
        if (loginDialog == null) {
            loginDialog = new LoginDialog(context).builder();
        }
        return loginDialog;
    }

    public ProgressBarDialog getProgressBarDialog() {
        if (progressBarDialog == null) {
            progressBarDialog = new ProgressBarDialog(context).builder();
        }
        return progressBarDialog;
    }

    public RwlqDialog getRwlqDialog() {
        if (rwlqDialog == null) {
            rwlqDialog = new RwlqDialog(context).builder();
        }
        return rwlqDialog;
    }

    public SubmitDialog getSubmitDialog() {
        if (submitDialog == null) {
            submitDialog = new SubmitDialog(context).builder();
        }
        return submitDialog;
    }

    public TimeOut getTimeOut() {
        if (timeOut == null) {
            timeOut = new TimeOut(context).builder();
        }
        return timeOut;
    }

    public YuangongDialog getYuangongDialog() {
        if (yuangongDialog == null) {
            yuangongDialog = new YuangongDialog(context).builder();
        }
        return yuangongDialog;
    }

    public ZzxDialog getZzxDialog() {
        if (zzxDialog == null) {
            zzxDialog = new ZzxDialog(context).builder();
        }
        return zzxDialog;
    }

    public PKReconciDialog getPkReconciDialog() {
        if (pkReconciDialog == null) {
            pkReconciDialog = new PKReconciDialog(context).builder();
        }
        return pkReconciDialog;
    }

    public SuccessDialog getSuccessDialog() {
        if (successDialog == null) {
            successDialog = new SuccessDialog(context).builder();
        }
        return successDialog;
    }


}
